import request from '@/utils/request'
// 查询短信配置列表
export function listSmsConfig(query) {
  return request({
    url: '/integrate/smsConfig/page',
    method: 'get',
    params: query
  })
}

// 查询短信配置详细
export function getSmsConfig(id) {
  return request({
    url: '/integrate/smsConfig/info?id='+id,
    method: 'get'
  })
}

// 新增短信配置
export function addSmsConfig(data) {
  return request({
    url: '/integrate/smsConfig/save',
    method: 'post',
    data: data
  })
}

// 修改短信配置
export function editSmsConfig(data) {
  return request({
    url: '/integrate/smsConfig/edit',
    method: 'post',
    data: data
  })
}

// 删除短信配置
export function delSmsConfig(id) {
  return request({
    url: '/integrate/smsConfig/del?id='+id,
    method: 'delete'
  })
}

// 启用短信配置
export function enable(id) {
  return request({
    url: '/integrate/smsConfig/enable?id='+id,
    method: 'get'
  })
}

// 禁用短信配置
export function disable(id) {
  return request({
    url: '/integrate/smsConfig/disable?id='+id,
    method: 'get'
  })
}
